package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户金钱记录对象 jiajia_user_money_change
 * 
 * @author knd
 * @date 2021-10-29
 */
public class JiajiaUserMoneyChange extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户Id */
    @Excel(name = "用户Id")
    private Long uid;

    /** 改变的钱 */
    @Excel(name = "改变的钱")
    private BigDecimal changeMoney;

    /** 改变前的钱 */
    @Excel(name = "改变前的钱")
    private BigDecimal changeBefore;

    /** 改变之后的钱 */
    @Excel(name = "改变之后的钱")
    private BigDecimal changeAfter;

    /** 改变类型 */
    @Excel(name = "改变类型")
    private String type;

    /**  */
    @Excel(name = "")
    private String des;

    /** 第三方Id，如订单编号 */
    @Excel(name = "第三方Id，如订单编号")
    private String otherId;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date addtime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setChangeMoney(BigDecimal changeMoney) 
    {
        this.changeMoney = changeMoney;
    }

    public BigDecimal getChangeMoney() 
    {
        return changeMoney;
    }
    public void setChangeBefore(BigDecimal changeBefore) 
    {
        this.changeBefore = changeBefore;
    }

    public BigDecimal getChangeBefore() 
    {
        return changeBefore;
    }
    public void setChangeAfter(BigDecimal changeAfter) 
    {
        this.changeAfter = changeAfter;
    }

    public BigDecimal getChangeAfter() 
    {
        return changeAfter;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setDes(String des) 
    {
        this.des = des;
    }

    public String getDes() 
    {
        return des;
    }
    public void setOtherId(String otherId) 
    {
        this.otherId = otherId;
    }

    public String getOtherId() 
    {
        return otherId;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("changeMoney", getChangeMoney())
            .append("changeBefore", getChangeBefore())
            .append("changeAfter", getChangeAfter())
            .append("type", getType())
            .append("des", getDes())
            .append("otherId", getOtherId())
            .append("addtime", getAddtime())
            .toString();
    }
}
